package com.alex.task.quartz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

// @Component
public class MyStartupRunner implements CommandLineRunner {

    @Autowired
    public CronSchedulerJob cronSchedulerJob;

    @Override
    public void run(String... args) throws Exception {
        cronSchedulerJob.scheduleJobs();
        System.out.println(">>>>>>>>>>>>>>>定时任务开始执行<<<<<<<<<<<<<");
    }
}
